home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / TutorialMovieClip.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  1.0 KB  |  44 lines

  1. package
  2. {
  3.    import flash.display.MovieClip;
  4.    import flash.display.SimpleButton;
  5.    import flash.events.Event;
  6.    
  7.    public class TutorialMovieClip extends MovieClip
  8.    {
  9.        
  10.       
  11.       public var TargetFrame:int;
  12.       
  13.       public var _bNextFrame:Button;
  14.       
  15.       public function TutorialMovieClip()
  16.       {
  17.          super();
  18.       }
  19.       
  20.       public function getSkip() : SimpleButton
  21.       {
  22.          return getChildByName("Skip") as SimpleButton;
  23.       }
  24.       
  25.       public function turnBlotterOff() : void
  26.       {
  27.          dispatchEvent(new Event("turnBlotterOff"));
  28.          trace("Blotter off");
  29.       }
  30.       
  31.       public function clearDressupTutorial() : void
  32.       {
  33.          Profile.CurrentProfile.TutorialMask |= Profile.kTutorial_DressupMask;
  34.          Storage.getInstance().saveProfiles();
  35.       }
  36.       
  37.       public function waitForUser() : void
  38.       {
  39.          dispatchEvent(new Event("tutorialWaitForUser"));
  40.          trace("Wait for user");
  41.       }
  42.    }
  43. }
  44.